﻿using System.Text.Json.Serialization;

namespace OpenPms.Models;

public class VRoomType
{
    /// <summary>
    /// 房型代码
    /// </summary>
    public Guid Id { get; set; }
    /// <summary>
    /// 房型名称
    /// </summary>
    public string Name { get; set; } = default!;
    /// <summary>
    /// 房间
    /// </summary>
    public List<VRoom> Rooms { get; set; } = default!;
}
public class VRoom
{
    [Obsolete]
    [JsonIgnore]
    public Guid? RoomId { get; set; }
    /// <summary>
    /// 房号
    /// </summary>
    public string RoomNo { get; set; } = default!;
    /// <summary>
    /// 描述
    /// </summary>
    [Display(Order = -1)]
    public string? Desc { get; set; }
    /// <summary>
    /// 房间状态
    /// </summary>
    public ERoomStatus? RoomStatus { get; set; }
    /// <summary>
    /// 是否为脏房
    /// </summary>
    public bool? IsDirty { get; set; }
    /// <summary>
    /// 订单号
    /// </summary>
    public Guid? OrderId { get; set; }
}
